<template>
  <div class="box">
    <img src="../../assets/images/error_images/404.png" alt="" />
    <el-button @click="goHome">首页</el-button>
  </div>

</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
let $router = useRouter()
const goHome = () => {
  $router.push('/home')
}
</script>

<style scoped lang="scss">
.box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  img {
    width: 800px;
    height: 400px;
  }
  button {
    width: 800px;
    height: 50px;
  }
}
</style>
